//worked on by Ray Zeller
#ifndef DAYTIME_H_
#define DAYTIME_H_
#include <string>
#include <sstream>
using namespace std;

class DayTime
{
public:
	DayTime();
	DayTime(int aYear, int aMonth, int aDate);
	DayTime(double aTime);
	string getYear();
	string getMonth();
	string getDate();
	string getFullDate();
	string getHour();
	string getMinute();
	int getHourInt();
	int getMinuteInt();
	int daysFrom(DayTime other);
	virtual ~DayTime();
private:
	static int daysPerMonth(int y, int m);
	static bool isLeapYear(int y);
private:
	int myYear;
	int myMonth;
	int myDate;
	double myTime;
};

#endif /*DAYTIME_H_*/
